<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">Borrow Review</ui:define>

    <ui:define name="content">
        <h:form>
            <h:panelGrid columns="2">
                <h:outputLabel for="isbn">ISBN</h:outputLabel>
                <h:outputText id="isbn" value="#{borrowingRecord.isbn}"/>

                <h:outputLabel for="borrowDate">Borrow Date</h:outputLabel>
                <h:outputText id="borrowDate" value="#{borrowingRecord.borrowDate}">
                    <f:convertDateTime pattern="yyyy-MM-dd"/>
                </h:outputText>

                <h:outputLabel for="returnDate">Return Date</h:outputLabel>
                <h:outputText id="returnDate" value="#{borrowingRecord.returnDate}">
                    <f:convertDateTime pattern="yyyy-MM-dd"/>
                </h:outputText>

                <h:outputLabel for="reader">Reader</h:outputLabel>
                <h:outputText id="reader" value="#{borrowingRecord.reader}"/>
            </h:panelGrid>

            <h:commandButton value="Confirm" action="confirm"/>
            <h:commandButton value="Revise" action="revise"/>
            <h:commandButton value="Cancel" action="cancel"/>
        </h:form>
    </ui:define>
</ui:composition>
